package com.example.figurehecheng.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 商家表
 * </p>
 *
 * @author author
 * @since 2025-03-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("merchant")
@ApiModel(value="Merchant对象", description="商家表")
public class Merchant implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "商家ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "商家名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "商家类型，对应关联的表类型")
    @TableField("merchant_type")
    private String merchantType;

    @ApiModelProperty(value = "关联的具体业务表的ID，如景点ID、餐厅ID等")
    @TableField("related_id")
    private Long relatedId;

    @ApiModelProperty(value = "联系人姓名")
    @TableField("contact_person")
    private String contactPerson;

    @ApiModelProperty(value = "联系电话")
    @TableField("contact_phone")
    private String contactPhone;

    @ApiModelProperty(value = "联系邮箱")
    @TableField("email")
    private String email;

    @ApiModelProperty(value = "营业执照编号")
    @TableField("business_license")
    private String businessLicense;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "状态(0:禁用 1:启用)")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "密码")
    @TableField("password")
    private String password;

    @ApiModelProperty(value = "账号")
    @TableField("username")
    private String username;

}
